<?php $fExecuter = function(\crcl\base\template\Values $oValues) { $sContent =
<<<BASE
<form action="/test" accept-charset="UTF-8" method="post" enctype="application/x-www-form-urlencoded" id="{$oValues->get('oForm')->getId()}" novalidate="novalidate" data-parsley-namespace="data-parsley-">
  <div class="form-group {$oValues->get('oForm')->getValidationStateClass('name')}">
    <label for="labelName">Name</label>
    <input
BASE;
if ($oValues->get('oForm')->name->hasProcessor('notempty') == \TRUE) { $sContent .= <<<BASE
 required="required" 
BASE;
} $sContent .= <<<BASE

BASE;
if ($oValues->get('oForm')->name->hasProcessor('maxlength') == \TRUE) { $aParams = $this->oValues->get('oForm')->name->getProcessorParams('maxlength');$sContent .= <<<BASE
 data-parsley-maxlength="{$aParams['max']}" 
BASE;
} $sContent .= <<<BASE

BASE;
if ($oValues->get('oForm')->name->hasProcessor('minlength') == \TRUE) { $aParams = $this->oValues->get('oForm')->name->getProcessorParams('minlength');$sContent .= <<<BASE
 data-parsley-minlength="{$aParams['min']}" 
BASE;
} $sContent .= <<<BASE
 type="text" class="form-control" name="{$oValues->get('oForm')->getId()}[name]" id="inputName" value="{$oValues->get('oForm')->name->getRaw()}" />
    <p class="help-block">{$oValues->get('oForm')->getValidationMessage('name')}</p>
  </div>
</form>
BASE;
return $sContent; } ?>